/* ***********************************************************************
 * Copyright (C) 1992-- 2016 中国南方航空股份有限公司.
 *
 * Created [2016-09-07 17:31:46] by FMS Team
 * ***********************************************************************
 *
 * mybaits-generator
 * ***********************************************************************
 */
package com.foreveross.law.contract.domain;

import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
* <p>com.foreveross.law.contract.domain.ContractTemplate</p>
*
* @author changwu.liao email:changwu.liao(a)gmail.com
* @version 1.0
* @since 1.0
* @Modified by add modified description
* @purpose add this file description here
*/
public class ContractTemplate implements java.io.Serializable{
	private static final long serialVersionUID = 5454155825314635342L;
	
	//alias	
	public static final String TABLE_SQL_NAME = "CONTRACT_TEMPLATE";
	
	public static final String ALIAS_CONTRACT_TEMPLATE_ID = "contractTemplateId";
	public static final String ALIAS_FILE_NAME = "fileName";
	public static final String ALIAS_FULL_FILE_PATH = "fullFilePath";
	public static final String ALIAS_FILE_SIZE = "fileSize";
	public static final String ALIAS_CONTRACT_TEMPLATE_NAME = "contractTemplateName";
	public static final String ALIAS_CREATE_DATE = "createDate";
	public static final String ALIAS_CREATE_BY = "createBy";
	public static final String ALIAS_UPDATE_DATE = "updateDate";
	public static final String ALIAS_UPDATE_BY = "updateBy";
	
	//the column is a primary key	
	public static final String PROP_KEY = "contractTemplateId";
	
	//fields START
	public static String PROP_REF="ContractTemplate";
	public static String PROP_REF_CONTRACT_TEMPLATE_ID = "contractTemplateId";
	public static String PROP_REF_FILE_NAME = "fileName";
	public static String PROP_REF_FULL_FILE_PATH = "fullFilePath";
	public static String PROP_REF_FILE_SIZE = "fileSize";
	public static String PROP_REF_CONTRACT_TEMPLATE_NAME = "contractTemplateName";
	public static String PROP_REF_CREATE_DATE_BEGIN = "createDateBegin";
	public static String PROP_REF_CREATE_DATE_END = "createDateEnd";
	public static String PROP_REF_CREATE_BY = "createBy";
	public static String PROP_REF_UPDATE_DATE_BEGIN = "updateDateBegin";
	public static String PROP_REF_UPDATE_DATE_END = "updateDateEnd";
	public static String PROP_REF_UPDATE_BY = "updateBy";
	//fields END
	
	//columns sql name START	
	public static String PROP_COLUMN_CONTRACT_TEMPLATE_ID = "CONTRACT_TEMPLATE_ID";
	public static String PROP_COLUMN_FILE_NAME = "FILE_NAME";
	public static String PROP_COLUMN_FULL_FILE_PATH = "FULL_FILE_PATH";
	public static String PROP_COLUMN_FILE_SIZE = "FILE_SIZE";
	public static String PROP_COLUMN_CONTRACT_TEMPLATE_NAME = "CONTRACT_TEMPLATE_NAME";
	public static String PROP_COLUMN_CREATE_DATE = "CREATE_DATE";
	public static String PROP_COLUMN_CREATE_BY = "CREATE_BY";
	public static String PROP_COLUMN_UPDATE_DATE = "UPDATE_DATE";
	public static String PROP_COLUMN_UPDATE_BY = "UPDATE_BY";
	//columns sql name END
		
	//可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息
	private java.lang.String contractTemplateId;
	private java.lang.String fileName;
	private java.lang.String fullFilePath;
	private java.lang.Integer fileSize;
	private java.lang.String contractTemplateName;
	private String remark;
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	private java.util.Date createDate;
	private java.lang.String createBy;
	private java.util.Date updateDate;
	private java.lang.String updateBy;
	//columns END

	public ContractTemplate(){
	}

	public ContractTemplate(
		java.lang.String contractTemplateId
	){
		this.contractTemplateId = contractTemplateId;
	}

	public void setContractTemplateId(java.lang.String value) {
		this.contractTemplateId = value;
	}
	
	public java.lang.String getContractTemplateId() {
		return this.contractTemplateId;
	}
	public void setFileName(java.lang.String value) {
		this.fileName = value;
	}
	
	public java.lang.String getFileName() {
		return this.fileName;
	}
	public void setFullFilePath(java.lang.String value) {
		this.fullFilePath = value;
	}
	
	public java.lang.String getFullFilePath() {
		return this.fullFilePath;
	}
	public void setFileSize(java.lang.Integer value) {
		this.fileSize = value;
	}
	
	public java.lang.Integer getFileSize() {
		return this.fileSize;
	}
	public void setContractTemplateName(java.lang.String value) {
		this.contractTemplateName = value;
	}
	
	public java.lang.String getContractTemplateName() {
		return this.contractTemplateName;
	}
	
	public void setCreateDate(java.util.Date value) {
		this.createDate = value;
	}
	
	public java.util.Date getCreateDate() {
		return this.createDate;
	}
	public void setCreateBy(java.lang.String value) {
		this.createBy = value;
	}
	
	public java.lang.String getCreateBy() {
		return this.createBy;
	}
	
	public void setUpdateDate(java.util.Date value) {
		this.updateDate = value;
	}
	
	public java.util.Date getUpdateDate() {
		return this.updateDate;
	}
	public void setUpdateBy(java.lang.String value) {
		this.updateBy = value;
	}
	
	public java.lang.String getUpdateBy() {
		return this.updateBy;
	}

	public String toString() {
		return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
			.append("ContractTemplateId",getContractTemplateId())
			.append("FileName",getFileName())
			.append("FullFilePath",getFullFilePath())
			.append("FileSize",getFileSize())
			.append("ContractTemplateName",getContractTemplateName())
			.append("CreateDate",getCreateDate())
			.append("CreateBy",getCreateBy())
			.append("UpdateDate",getUpdateDate())
			.append("UpdateBy",getUpdateBy())
			.toString();
	}
	
	public int hashCode() {
		return new HashCodeBuilder()
			.append(getContractTemplateId())
			.toHashCode();
	}
	
	public boolean equals(Object obj) {
		if(obj instanceof ContractTemplate == false) return false;
		if(this == obj) return true;
		ContractTemplate other = (ContractTemplate)obj;
		return new EqualsBuilder()
			.append(getContractTemplateId(),other.getContractTemplateId())
			.isEquals();
	}
}

